//
//  TWbAccessorBaseDefine.m
//  TencentWB
//
//  Created by kong_jinbiao on 14-5-15.
//  Copyright (c) 2014年 user. All rights reserved.
//

#import "TWbAccessorBaseDefine.h"
#import "WeiboApiObject.h"

@implementation TWbAccessorBaseInput

- (NSMutableDictionary *)paramsDicForGetRequest
{
    WeiboApiObject *tmpObjc = [Utils getTokenInfo];
    NSDictionary *tmpDic =@{@"oauth_consumer_key":tmpObjc.appKey,
                            @"access_token":tmpObjc.accessToken,
                            @"openid":tmpObjc.openid,
                            @"clientip":@"127.0.0.1",
                            @"oauth_version":@"2.a",
                            @"scope":@"all",
                            @"format": @"json"};
    NSMutableDictionary *dic = [NSMutableDictionary dictionaryWithDictionary:tmpDic];
    return dic;
}
@end


@implementation TWbAccessorBaseOutput

-(void)parseDataWithDic:(NSMutableDictionary *)dic
{
    self.m_errcode = [dic valueForKey:@"errcode"];
    self.m_msg = [dic valueForKey:@"msg"];
    self.m_ret = [dic valueForKey:@"ret"];
}
@end